{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas\n",
    "df = pandas.read_csv('2020级广告学专业课程仓库一览表-表格全文.csv')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>学号</th>\n",
       "      <th>姓名</th>\n",
       "      <th>仓库地址</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>P201212357</td>\n",
       "      <td>江中诚</td>\n",
       "      <td>https://gitee.com/jiangzhongcheng2020/jzc-20-2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>P201212161</td>\n",
       "      <td>冉小军</td>\n",
       "      <td>https://gitee.com/ranxiaojun/ranxiaojun.git</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>P201212129</td>\n",
       "      <td>夏平琴</td>\n",
       "      <td>https://gitee.com/xiapingqin/xiapingqin.git</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>P201212099</td>\n",
       "      <td>崔山林</td>\n",
       "      <td>https://gitee.com/cuishanlin/messi.git</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>P201212079</td>\n",
       "      <td>王霞</td>\n",
       "      <td>https://gitee.com/ljhwangxia/jianbingguozi.git</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>101</th>\n",
       "      <td>P201212123</td>\n",
       "      <td>王隆琴</td>\n",
       "      <td>https://gitee.com/wang-longqin/wlq182843</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>102</th>\n",
       "      <td>P201212102</td>\n",
       "      <td>方润</td>\n",
       "      <td>http://gitee.com/fr17624200147/jintianxuexilemei</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>103</th>\n",
       "      <td>P200410491</td>\n",
       "      <td>马芳甜</td>\n",
       "      <td>https://gitee.com/mafangtian/.git</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>104</th>\n",
       "      <td>P201212155</td>\n",
       "      <td>帕合提古丽·阿发力夏</td>\n",
       "      <td>https://gitee.com/pahetiguli/projects</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>105</th>\n",
       "      <td>P201212157</td>\n",
       "      <td>龙云荟</td>\n",
       "      <td>https://gitee.com/longyunhui823/longyunhui.git</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>86 rows × 3 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "             学号          姓名                                              仓库地址\n",
       "1    P201212357         江中诚    https://gitee.com/jiangzhongcheng2020/jzc-20-2\n",
       "2    P201212161         冉小军       https://gitee.com/ranxiaojun/ranxiaojun.git\n",
       "3    P201212129         夏平琴       https://gitee.com/xiapingqin/xiapingqin.git\n",
       "5    P201212099         崔山林            https://gitee.com/cuishanlin/messi.git\n",
       "7    P201212079          王霞    https://gitee.com/ljhwangxia/jianbingguozi.git\n",
       "..          ...         ...                                               ...\n",
       "101  P201212123         王隆琴          https://gitee.com/wang-longqin/wlq182843\n",
       "102  P201212102          方润  http://gitee.com/fr17624200147/jintianxuexilemei\n",
       "103  P200410491         马芳甜                 https://gitee.com/mafangtian/.git\n",
       "104  P201212155  帕合提古丽·阿发力夏             https://gitee.com/pahetiguli/projects\n",
       "105  P201212157         龙云荟    https://gitee.com/longyunhui823/longyunhui.git\n",
       "\n",
       "[86 rows x 3 columns]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.drop_duplicates('学号',keep='last')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = pandas.read_spss('identity.sav')"
   ]
  }
 ],
 "metadata": {
  "interpreter": {
   "hash": "11f1dc213e07634baa4c5c321dec03c05dafae643c50f20e6d1a492290c05dc2"
  },
  "kernelspec": {
   "display_name": "Python 3.9.7 64-bit",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
